package com.learn.sqlSession;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface SqlSession {

    public int execute(String statementid, Object... params) throws Exception;

    public <E> List<E> selectList(String statementid, Object... params) throws IllegalAccessException, ClassNotFoundException, IntrospectionException, InstantiationException, SQLException, InvocationTargetException, NoSuchFieldException;

    public <T> T selectOne(String statementid, Object... params) throws IllegalAccessException, Exception;

    //代理实现Dao
    public <T> T getMapper(Class<?> mapperClass);
}
